<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function Button(wide, height, background) {
            this.wide = wide;
            this.height = height;
            this.background = background;
            this.clicking = function(act) {
                console.log(act);
            }
        }
        var x = new Button(1, 1, 1);
        console.log(x);
    </script>
</head>

<body>

</body>

</html>